
<template>
  <Card :dis-hover="true">
    <div class="nav">
      <ButtonGroup size="default">
        <Button type="dashed" size="default" @click="goto(0)">待审核中期检查</Button>
        <Button type="dashed" size="default" @click="goto(1)">已审核中期检查</Button>
      </ButtonGroup>
      <hr>
    </div>
    <div>
        <router-view></router-view>
    </div>
  </Card>
</template>

<script>
export default {
  name: 'SetupApprove',
  methods: {
    goto (type) {
      if (type === 0) {
        this.$router.push({ name: '待审核中期检查' });
      } else {
        this.$router.push({ name: '已审核中期检查' });
      }
    }
  },
  mounted () {
    // this.goto(0);
  }
};
</script>

<style scoped>
.nav {
  margin-bottom: 15px;
}
</style>
